$(function() {	
	initButton();
	init();
});
//初始化页面
function init(){
	$.ajax({
		type : "get",
		url : server_url
				+ 'rest/tea/user/news/getUserNewsList.do?ran=' + Math.random(),
		dataType : 'json',
		async : true,
		data : {
			userId:localStorage.getItem('userid')
		},
		success : function(result) {
			console.log(result);
			if (result.retCode == '0000') {
				var str = '';
				var newsList = result.data;
				if(newsList.length>=1){
					$.each(newsList,function(i,n){
						str += '<div class="inf-item"><p class="inf-time">'+n.newsCreateTime+'</p><div class="con-box no-read">'+n.acceptedNews+'</div></div>';
					});
				}	
				$("#userNews").html(str);
			}else{
				showErrorMsg(result.data);
			}
		}
	});	
}

// 页面事件绑定
function initButton() {}
